<!DOCTYPE html>
<html lang="en">
<head>
    <title>Matrix Admin</title>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" href="<?=uriStatic('/bootstrap.min.css')?>" />
    <link rel="stylesheet" href="<?=uriStatic('/bootstrap-responsive.min.css')?>" />
    <link rel="stylesheet" href="<?=uriStatic('/fullcalendar.css')?>" />
    <link rel="stylesheet" href="<?=uriStatic('/matrix-style.css')?>" />
    <link rel="stylesheet" href="<?=uriStatic('/matrix-media.css')?>" />
    <link href="font-awesome/css/font-awesome.css" rel="stylesheet" />
    <link rel="stylesheet" href="<?=uriStatic('/jquery.gritter.css')?>" />
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>
</head>
<body>

<!--Header-part-->
<div id="header">
    <h1><a href="dashboard.html">Matrix Admin</a></h1>
</div>
<!--close-Header-part-->

<!--top-Header-menu-->
<div id="user-nav" class="navbar navbar-inverse">
    <ul class="nav">
        <li  class="dropdown" id="profile-messages" ><a title="" href="#" data-toggle="dropdown" data-target="#profile-messages" class="dropdown-toggle"><i class="icon icon-user"></i>  <span class="text">Xin chào <strong><?=(isset($_SESSION['my_info']['ten_dang_nhap']))?$_SESSION['my_info']['ten_dang_nhap']:'' ?></strong></strong></span><b class="caret"></b></a>
            <ul class="dropdown-menu">
                <li><a href="cp.php?mod=user&task=change-password"><i class="icon-key"></i> Đổi mật khẩu</a></li>
                <li class="divider"></li>
                <li><a href="login.php?act=logout"><i class="icon-share-alt"></i> Đăng xuất</a></li>
            </ul>
        </li>
        <?php
        $yeu_cau_chua_xem = count(find('yeu_cau_lop',"tinh_trang='0'"));
        $gopy_chua_xem = count(find('gop_y',"trang_thai='0'"));
        $tong = $yeu_cau_chua_xem + $gopy_chua_xem;
        ?>
        <li class="dropdown" id="menu-messages"><a href="#" data-toggle="dropdown" data-target="#menu-messages" class="dropdown-toggle"><i class="icon icon-bullhorn"></i> <span class="text">Thông báo</span> <?=($tong>0)?'<span class="label label-important">'.$tong.'</span>':''?> <b class="caret"></b></a>
            <ul class="dropdown-menu">
                <li><a class="sInbox" title="" href="#"><i class="icon-globe"></i> Yêu cầu lớp mới <?=($yeu_cau_chua_xem>0)?'<span class="label label-important">'.$yeu_cau_chua_xem.'</span>':''?></a></li>
                <li class="divider"></li>
                <li><a class="sOutbox" title="" href="#"><i class="icon-comment"></i> Góp ý mới <?=($gopy_chua_xem>0)?'<span class="label label-important">'.$gopy_chua_xem.'</span>':''?></a></li>
            </ul>
        </li>
        <?php
        if(isset($_SESSION['my_info']['loai'])&&$_SESSION['my_info']['loai']>=3)
            echo '<li class=""><a title="" href="cp.php?mod=admin&task=settings"><i class="icon icon-cog"></i> <span class="text">Thiết lập</span></a></li>';
        ?>
        <li class=""><a title="" href="login.php?act=logout"><i class="icon icon-share-alt"></i> <span class="text">Đăng xuất</span></a></li>
    </ul>
</div>
<!--close-top-Header-menu-->
<!--start-top-serch-->
<div id="search">
    <input type="text" placeholder="Search here..."/>
    <button type="submit" class="tip-bottom" title="Search"><i class="icon-search icon-white"></i></button>
</div>
<!--close-top-serch-->